<template>
	<view class="add_service">
		<view class="add_title">
			增值服务
		</view>
	<view class="add_content"    >
			<view class="one">
				免除代加油服务费 
				<tm-helpTips ment-direction="right" tip-direction="right" direction='top' label="工作人员将替您加油并收取费用">
					<tm-icons name="icon-question-circle"></tm-icons>
				</tm-helpTips><br/>
				<tm-tags color="bg-gradient-orange-accent" size="s" >限时优惠</tm-tags>
			</view>
			<view class="two">
				<slot>
				<span>￥</span>{{price}} <tm-checkbox  v-model="one"  name='25' :size='20' @change='changeRadio'></tm-checkbox>
				</slot>
			</view>
		</view>
	<view class="add_content" >
			<view class="one">
				延时还车抵扣费
				<tm-helpTips ment-direction="right" tip-direction="right" direction='top' label="工作人员将替您加油并收取费用">
					<tm-icons name="icon-question-circle"></tm-icons>
				</tm-helpTips><br/>
				<tm-tags color="bg-gradient-orange-accent" size="s" >限时优惠</tm-tags>
			</view>
			<view class="two">
				<slot>
				<span>￥</span>{{price2}} <tm-checkbox  v-model="two" name='16'  :size='20' @change='changeRadio2'></tm-checkbox>
				</slot>
			</view>
		</view>
</view>
</template>

<script>
	export default {
	name:'AddService',
		data() {
			return {
				price:25,
				price2:16,
				list:[{id:'1'},{id:'2'}],
				one:false,
				two:false
			}
		},
		methods: {
			changeRadio(e){
				if(e.checked){
					uni.setStorageSync('addservice',25)
				}else{
					uni.removeStorageSync('addservice')
				}
			},
			changeRadio2(e){
			if(e.checked){
				uni.setStorageSync('addservice2',16)
			}else{
				uni.removeStorageSync('addservice2')
				}
			},
			test(e){
				console.log(e)
			}
		}
	}
</script>

<style lang="scss" scoped>
.add_service{
	width: 90%;
	height: 100%;
	margin: auto;
	box-sizing: border-box;
	border-radius: 30rpx;
	background-color: #ffffff;
	padding: 20rpx;
	.add_title{
		
	}
	.add_content{
		display: flex;
		justify-content: space-between;
		align-items: center;
		.one{
			
		}
		.two{
			
		}
	}
}
</style>
